package com.gksc.video.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @className: GkzfWebProperties
 * @description: 配置类
 * @author: Liao.yx
 * @email: 1229053515@qq.com
 * @create: 2020年09月24日 18时59分
 * @copyRight: 2020 liaoyongxiang All rights reserved.
 **/
@Data
@Component
@ConfigurationProperties(prefix = "com.gkzf")
public class GkzfWebProperties {
    /**
     * 拦截请求规则
     */
    private List<WhiteIpDefinition> whiteRules;
    /**
     * 是否拦截Ip请求
     */
    private boolean requestInterceptEnable = false;
    /**
     * 是否为内部测试版本
     */
    private boolean innerVideoServerEnable = true;
    /**
     * 推送配置信息
     */
    private PushConfig pushCfg = new PushConfig();
}
